package com.yanqu.road.server.cmd.union.war;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.union.UnionWarModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.server.command.Cmd;

@Cmd(code = Protocol.S_UNION_WAR_WATCH_BATTLE_MARK, desc = "标识战斗结果")
public class WatchBattleMarkCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(UnionWarModule.class).markWatchBattle();
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
